from SeleniumTest.common import MySelenium
from SeleniumTest.common import excleLoad
import pandas


if __name__ == '__main__':
    while True:
        test = MySelenium.seleTest()
        test.testLog.info("----------测试开始---------")
        test.open_url("http://192.168.65.166")
        para_list = excleLoad.get_para_from_excel()
        # print(para_list)
        for paras in para_list:
            if pandas.isnull(paras[4]) == False:
                test.elementAct(search_type=paras[0], inner_propert=paras[1], name=paras[2], act_name=paras[3],
                                value=str(paras[4]) )
            else:
                test.elementAct(search_type=paras[0], inner_propert=paras[1], name=paras[2], act_name=paras[3])
        test.testLog.info("----------测试结束---------")
        test.testDriver.close()




